﻿@model List<OPLWeb.Models.Fixture>
<div class="module content htmlModule" id="matchsummary-gadget">
    <div class="module-header">
        <h3>
            Match Summary
        </h3>
    </div>
    <div class="module-body">
        <div class="module-body-detail">
            <ul class="content-list">
                @foreach (var item in Model)
                {
                    if (item.TeamWon != null)
                    {
                    <li><a href="/results/index/@item.Id">
                        <div class="cl-main">
                       
                            <img src="/Content/icons/64X64/@(item.TeamWon).png"
                                alt="" width="60" height="60"/>
                            <h4 style="padding: 0; margin: 10px;">
                                <strong>@item.Team.TeamName</strong>&nbsp;vs.&nbsp;<strong>@item.Team1.TeamName</strong></h4>
                            <span>@item.Date</span>
                            <span>@item.ResultDescription</span>
                        </div> </a>
                    </li> 
                    }
                }
            </ul>
        </div>
    </div>
    <div class="module-footer">
        <a href="/Fixtures/index/@ViewBag.CurrentSeason">Browse all results</a>
    </div>
</div>
